package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购明细对象 c_details
 * 
 * @author GGJ
 * @date 2024-05-13
 */
public class CDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购批次号 */
    private Long id;

    /** 仓库 */
    @Excel(name = "仓库")
    private String warehouse;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String name;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    /** 采购时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purtime;

    /** 到货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arrtime;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private Long purnum;

    /** 实际到货数量 */
    @Excel(name = "实际到货数量")
    private Long turenum;

    /** 入库状态 */
    @Excel(name = "入库状态")
    private String input;

    /** 到货状态 */
    @Excel(name = "到货状态")
    private String arrive;

    /** 缺货 */
    @Excel(name = "缺货")
    private Long c_short;

    /** 采购金额 */
    @Excel(name = "采购金额")
    private Long cost;

    /** 损坏数量 */
    @Excel(name = "损坏数量")
    private Long damage;

    /** 损坏率 */
    @Excel(name = "损坏率")
    private String damageper;

    /** 采购人 */
    @Excel(name = "采购人")
    private String buyer;

    /** 采购主表ID */
    @Excel(name = "采购主表ID")
    private String zId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setWarehouse(String warehouse) 
    {
        this.warehouse = warehouse;
    }

    public String getWarehouse() 
    {
        return warehouse;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }
    public void setPurtime(Date purtime) 
    {
        this.purtime = purtime;
    }

    public Date getPurtime() 
    {
        return purtime;
    }
    public void setArrtime(Date arrtime) 
    {
        this.arrtime = arrtime;
    }

    public Date getArrtime() 
    {
        return arrtime;
    }
    public void setPurnum(Long purnum) 
    {
        this.purnum = purnum;
    }

    public Long getPurnum() 
    {
        return purnum;
    }
    public void setTurenum(Long turenum) 
    {
        this.turenum = turenum;
    }

    public Long getTurenum() 
    {
        return turenum;
    }
    public void setInput(String input) 
    {
        this.input = input;
    }

    public String getInput() 
    {
        return input;
    }
    public void setArrive(String arrive) 
    {
        this.arrive = arrive;
    }

    public String getArrive() 
    {
        return arrive;
    }
    public void setShort(Long c_short)
    {
        this.c_short = c_short;
    }

    public Long getShort() 
    {
        return c_short;
    }
    public void setCost(Long cost) 
    {
        this.cost = cost;
    }

    public Long getCost() 
    {
        return cost;
    }
    public void setDamage(Long damage) 
    {
        this.damage = damage;
    }

    public Long getDamage() 
    {
        return damage;
    }
    public void setDamageper(String damageper) 
    {
        this.damageper = damageper;
    }

    public String getDamageper() 
    {
        return damageper;
    }
    public void setBuyer(String buyer) 
    {
        this.buyer = buyer;
    }

    public String getBuyer() 
    {
        return buyer;
    }
    public void setzId(String zId) 
    {
        this.zId = zId;
    }

    public String getzId() 
    {
        return zId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("warehouse", getWarehouse())
            .append("name", getName())
            .append("supplier", getSupplier())
            .append("purtime", getPurtime())
            .append("arrtime", getArrtime())
            .append("purnum", getPurnum())
            .append("turenum", getTurenum())
            .append("input", getInput())
            .append("arrive", getArrive())
            .append("short", getShort())
            .append("cost", getCost())
            .append("damage", getDamage())
            .append("damageper", getDamageper())
            .append("buyer", getBuyer())
            .append("zId", getzId())
            .append("remark", getRemark())
            .toString();
    }
}
